/**鑫合汇信息展示*/
function getXinHeHuiInfo(url) {
	$.dpAjax({
		show:true,
		url:url,
		data:{busiId:busiId},
		success: function(datas){
			 var data = datas.result;
			 if(data){
				//第三方征信结果
				var thCreditResults = data.thCreditResults;
				var html = '';
				if(thCreditResults && thCreditResults.length > 0) {
					for(var i in thCreditResults) {
						var thCreditResult = thCreditResults[i];
						html += '<div class="xhh-padding"><table cellpadding="0" cellspacing="0" border="0" class="infor-table list-table-detail">';
						html += '<tr><td align="right"><label class="control-label">' + ('01' == thCreditResult.carManType ? '配偶' : '主借人') + '姓名：</label></td>';
						html += '<td><div class="control-div">' + thCreditResult.peopleName + '</div></td></tr>';
						html += '<tr><td align="right" valign="top"><label class="control-label">' + ('01' == thCreditResult.carManType ? '配偶' : '主借人') + '信用状况：</label></td>';
						html += '<td><div class="control-div warn-break">' + thCreditResult.approveStatusName + '</div></td></tr>';
						html += '<tr><td align="right" valign="top"><label class="control-label">' + ('01' == thCreditResult.carManType ? '配偶' : '主借人') + '审批意见：</label></td>';
						html += '<td><div class="control-div warn-break">' + thCreditResult.approveMessage + '</div></td></tr>';
						html += '</table></div>';
					}
				} else {
					html += '<div class="control-div business-padding">暂时没有征信结果</div>';
				}
				$('#xhh_thCreditResults').html(html);
				
				var tjcs = data.tjcs;
				if(tjcs && tjcs != '') {
					$("#xhh_tjcs").html(formateIntegerMinutes(tjcs));
				} else {
					$("#xhh_tjcs").html('-');
				}
				
				var cswctz = data.cswctz;
				if(cswctz && cswctz != '') {
					$("#xhh_cswctz").html(formateIntegerMinutes(cswctz));
				} else {
					$("#xhh_cswctz").html('-');
				}
				
				var xhhzsys = data.xhhzsys;
				if(xhhzsys && xhhzsys != '') {
					$("#xhh_xhhzsys").html(formateIntegerMinutes(xhhzsys));
				} else {
					$("#xhh_xhhzsys").html('-');
				}
				
				var tjzs = data.tjzs;
				var tjzs_des = data.tjzs_des;
				if(tjzs && tjzs != '') {
					$("#xhh_tjzs").html(formateIntegerMinutes(tjzs) + '&nbsp;&nbsp;&nbsp;' + (tjzs_des ? tjzs_des : ''));
				} else {
					$("#xhh_tjzs").html('-');
				}
				
				var mjwctz = data.mjwctz;
				var mjwctz_des = data.mjwctz_des;
				if(mjwctz && mjwctz != '') {
					$("#xhh_mjwctz").html(formateIntegerMinutes(mjwctz) + '&nbsp;&nbsp;&nbsp;' + (mjwctz_des ? mjwctz_des : ''));
				} else {
					$("#xhh_mjwctz").html('-');
				}
				
				/*鑫合汇放款完成*/
				var fkwctz = data.fkwctz;
				var fkwctz_result = data.fkwctz_result;
				if(fkwctz && fkwctz != ''){
					$('#xhh_fkwctz').html(formateIntegerMinutes(fkwctz) + '&nbsp;&nbsp;&nbsp;' + (fkwctz_result ? fkwctz_result : ''));
				} else {
					$('#xhh_fkwctz').html('-');
				}
				/*资金渠道*/
				var busiTypeDisplay = data.busiTypeDisplay;
				/*财务一审*/
				var cwshhy = data.cwshhy_create_date;
				if(cwshhy && cwshhy != '') {
					$('#xhh_cwshhy').html(formateIntegerDate(cwshhy,'yyyy-MM-dd hh:mm') + '&nbsp;&nbsp;&nbsp;' + busiTypeDisplay);
				} else {
					$('#xhh_cwshhy').html('-');
				}
				/*资金渠道*/
				var fundChannelDisplay = data.fundChannelDisplay;
				/*财务垫款*/
				var remit = data.remit_time_remit;
				var remit_amount = data.remit_amount_remit;
				if(remit && remit != ''){
					$('#xhh_remit').html(formateToMinutes(remit) + '&nbsp;&nbsp;&nbsp;' + fundChannelDisplay + '&nbsp;&nbsp;&nbsp;' + showNumber(remit_amount) + '元');
				} else {
					$('#xhh_remit').html('-');
				}
				/*退款*/
				var refund = data.refund_time_arrive;
				var refund_amount = data.refund_amount_remit;
				if(refund && refund != ''){
					$('#xhh_refund').html(formateToMinutes(refund) + '&nbsp;&nbsp;&nbsp;' + fundChannelDisplay + '&nbsp;&nbsp;&nbsp;' + showNumber(refund_amount) + '元');
				} else {
					$('#xhh_refund').html('-');
				}
				/*垫款调整A*/
				var remitA = data.remit_a_time_remit;
				var remit_a_amount = data.remit_a_amount_adjust;
				if(remitA && remitA != '') {
					$('#xhh_remit_a').html(formateToMinutes(remitA) + '&nbsp;&nbsp;&nbsp;' + showNumber(remit_a_amount) + '元');
				} else {
					$('#xhh_remit_a').html('-');
				}
				/*垫款调整B*/
				var remitB = data.remit_b_time_remit;
				var remit_b_amount = data.remit_b_amount_adjust;
				if(remitB && remitB != '') {
					$('#xhh_remit_b').html(formateToMinutes(remitB) + '&nbsp;&nbsp;&nbsp;' + showNumber(remit_b_amount) + '元');
				} else {
					$('#xhh_remit_b').html('-');
				}
				/*还款计划收到*/
				var repaymentScheduleCreated = data.repayment_schedule_created;
				var repaymentScheduleRepayAmount = data.repayment_schedule_repay_amount;
				if(repaymentScheduleCreated && repaymentScheduleCreated != '') {
					$('#xhh_repayment_schedule').html(formateIntegerMinutes(repaymentScheduleCreated) + '&nbsp;&nbsp;&nbsp;' + showNumber(repaymentScheduleRepayAmount) + '元');
				} else {
					$('#xhh_repayment_schedule').html('-');
				}
				/*计划还款时间*/
				var repayment_schedule_repay_date = data.repayment_schedule_repay_date;
				if(repayment_schedule_repay_date && repayment_schedule_repay_date != '') {
					$('#xhh_repayment_schedule_repay_date').html(repayment_schedule_repay_date);
				} else {
					$('#xhh_repayment_schedule_repay_date').html('-');
				}
				/*还款时间*/
				var repaymentDate = data.repayment_date_repayment;
				var repaymentAmount = data.repayment_amount_repaymen;
				var repaymentType = data.repayment_repayment_type;
				if(repaymentDate && repaymentDate != ''){
					$('#xhh_repayment').html(formateToMinutes(repaymentDate) + '&nbsp;&nbsp;&nbsp;' + repaymentType + '&nbsp;&nbsp;&nbsp;' + showNumber(repaymentAmount) + '元');
				} else {
					$('#xhh_repayment').html('-');
				}
				
				/*申请垫资*/
				var ywFundApply = data.ywFundApply;
				if(ywFundApply) {
					$('#xhh_ywFundApply_created').html(formateIntegerMinutes(ywFundApply.created));
					$('#xhh_ywFundApply_creatorName').html(ywFundApply.creatorName);
					$('#xhh_ywFundApply_remarks').html(ywFundApply.remarks);
				} else {
					$('#xhh_ywFundApply_created').html('-');
					$('#xhh_ywFundApply_creatorName').html('-');
					$('#xhh_ywFundApply_remarks').html('-');
				}
				
				/*财务一审*/
				var cwshhyOtherAuditInfo = data.cwshhyOtherAuditInfo;
				if(cwshhyOtherAuditInfo) {
					$('#xhh_cwshhyOtherAuditInfo_created').html(formateIntegerMinutes(cwshhyOtherAuditInfo.created));
					$('#xhh_cwshhyOtherAuditInfo_creatorName').html(cwshhyOtherAuditInfo.creatorName);
					$('#xhh_cwshhyOtherAuditInfo_auditDetail').html(cwshhyOtherAuditInfo.auditDetail);
				} else {
					$('#xhh_cwshhyOtherAuditInfo_created').html('-');
					$('#xhh_cwshhyOtherAuditInfo_creatorName').html('-');
					$('#xhh_cwshhyOtherAuditInfo_auditDetail').html('-');
				}
				
				/*财务垫款*/
				var cwRemitCar = data.cwRemitCar;
				if(cwRemitCar) {
					$('#xhh_cwRemitCar_timeRemit').html(formateToMinutes(cwRemitCar.timeRemit));
					$('#xhh_cwRemitCar_creatorName').html(cwRemitCar.creatorName);
					$('#xhh_cwRemitCar_remarks').html(cwRemitCar.remarks);
				} else {
					$('#xhh_cwRemitCar_timeRemit').html('-');
					$('#xhh_cwRemitCar_creatorName').html('-');
					$('#xhh_cwRemitCar_remarks').html('-');
				}
				
				/*提前还款*/
				var thRepayment = data.thRepayment;
				if(thRepayment) {
					$('#xhh_thRepayment_dateRepayment').html(formateToMinutes(thRepayment.dateRepayment));
					$('#xhh_thRepayment_creatorName').html(thRepayment.creatorName);
					$('#xhh_thRepayment_remarks').html(thRepayment.remarks);
				} else {
					$('#xhh_thRepayment_dateRepayment').html('-');
					$('#xhh_thRepayment_creatorName').html('-');
					$('#xhh_thRepayment_remarks').html('-');
				}
				
 			}
         }
	});
}